package com.smedi.ismedi.personnel.api.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * @Author: xulinjun
 * @Date: 2021-6-8 11:13
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PersonEditRequest implements Serializable {
    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    @NotNull(message = "人员id为空！")
    private Long id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @Size(max = 50, message = "最大50个字符！")
    private String lastName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String gender;

    /**
     * 人员类型
     */
    @ApiModelProperty(value = "人员类型")
    private String personType;

    /**
     * 工号
     */
    @ApiModelProperty(value = "工号")
    private String employeeNum;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = "^((1)\\d{10})$", message = "手机号格式错误！")
    private String mobile;

    /**
     * 邮箱地址
     */
    @ApiModelProperty(value = "邮箱地址")
    @Email(message="邮箱地址格式错误！")
    private String email;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证", required = true)
    private String idCard;

    /**
     * 办公电话
     */
    @ApiModelProperty(value = "办公电话")
    private String officeTelephone;

    /**
     * 头像uuid
     */
    @ApiModelProperty(value = "头像uuid")
    private String imageUUID;

    /**
     * 签章uuid
     */
    @ApiModelProperty(value = "签章uuid")
    private String signatureUUID;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号")
    private Long personOrder;
}
